<?php defined('MINICAKE') or die('can not access!');

	$uri = $_SERVER['REQUEST_URI'];
	$uri = str_replace('/miniCake','',$uri);

	require_once(MINICAKE.'core'.DS.'object.php');
	require_once(MINICAKE.'core'.DS.'common.php');
	require_once(MINICAKE.'core'.DS.'controller.php');
	require_once(MINICAKE.'core'.DS.'model.php');

	require_once(MINICAKE.'lib'.DS.'configure.php');
	require_once(MINICAKE.'lib'.DS.'dispatcher.php');
	require_once(MINICAKE.'lib'.DS.'myDB.php');

	define('DIR_CONTROLLER',APP.'controllers'.DS);
	define('DIR_MODEL',APP.'models'.DS);
	define('DIR_VIEW',APP.'views'.DS);

	// Configure::load('config');

	set_exception_handler('minicake_exception_handler');

	$router= new Dispatcher($uri);
